package init

import (
	"fmt"
	"github.com/spf13/viper"
	"member/member-srv/basic/config"
)

func ConfigInit() {
	viper.SetConfigFile("../../../member-srv/config.yaml")
	err := viper.ReadInConfig()
	if err != nil {
		fmt.Println("配置读取失败")
	}
	err = viper.Unmarshal(&config.Config)
	if err != nil {
		fmt.Println("配置解析失败")
	}
}
